﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MvcEngine.Core.Validation;
using MvcEngine.Core.Content;
using MvcEngine.Core.Website;
using MvcEngine.Core;
using MvcEngine.Core.Localization;
using MvcEngine.Mvc.Models.ViewModels;

namespace MvcEngine.Mvc.Models
{
    public class LoginViewModel : MvcEngineModel
    {
        [MvcEngineDisplayName("EmailLabel")]
        [RequiredFieldValidator("EmailRequiredValidator")]
        [LengthValidator("EmailLengthValidator", 256)]
        [RegularExpressionValidator("EmailRegularExpressionValidator", "$EmailRegexExpression", true)]
        public string Email { get; set; }

        [MvcEngineDisplayName("PasswordLabel")]
        [RequiredFieldValidator("PasswordRequiredValidator")]
        [LengthValidator("PasswordLengthValidator", 256)]
        public string Password { get; set; }

        [MvcEngineDisplayName("RememberMeLabel")]
        public bool RememberMe { get; set; }

        public string AccountPage { get; set; }
    }
}
